using octalforty.BizFramework.Core;

namespace octalforty.Waffle.ObjectModel.Business.Objects
{
    /// <summary>
    /// Represents a single forum in octalforty Waffle.
    /// </summary>
    public class Forum : BusinessObjectWithNameBase, IBusinessObjectWithDescription, 
        IBusinessObjectWithVersionTag
    {
        #region Private Member Variables
        private string description;
        private long versionTag;
        #endregion

        /// <summary>
        /// Initializes a new instance of <see cref="Forum"/> class.
        /// </summary>
        public Forum()
        {
        }

        /// <summary>
        /// Initializes a new instance of <see cref="Forum"/> class.
        /// </summary>
        /// <param name="id"></param>
        /// <param name="name"></param>
        /// <param name="description"></param>
        public Forum(long id, string name, string description) : 
            base(id, name)
        {
            this.description = description;
        }

        #region IBusinessObjectWithDescription Members
        /// <summary>
        /// Get or sets a description of the object.
        /// </summary>
        public virtual string Description
        {
            get { return description; }
            set { description = value; }
        }
        #endregion

        #region IBusinessObjectWithVersionTag Members
        /// <summary>
        /// Gets or sets business object version tag.
        /// </summary>
        public virtual long VersionTag
        {
            get { return versionTag; }
            set { versionTag = value; }
        }
        #endregion
    }
}
